home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / QuickDraw3D 1.6 SDK / Mac Interfaces / CIncludes / QD3DAcceleration.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-18  |  3.0 KB  |  135 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        QD3DAcceleration.h
  3.  
  4.      Contains:    Header file for low-level 3D driver API                            
  5.  
  6.      Version:    Technology:    Quickdraw 3D 1.6
  7.                  Release:    QuickTime 4.0
  8.  
  9.      Copyright:    © 1995-1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __QD3DACCELERATION__
  18. #define __QD3DACCELERATION__
  19.  
  20. #ifndef __QD3D__
  21. #include <QD3D.h>
  22. #endif
  23.  
  24.  
  25.  
  26. #if PRAGMA_ONCE
  27. #pragma once
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37.  
  38. #if PRAGMA_STRUCT_ALIGN
  39.     #pragma options align=power
  40. #elif PRAGMA_STRUCT_PACKPUSH
  41.     #pragma pack(push, 2)
  42. #elif PRAGMA_STRUCT_PACK
  43.     #pragma pack(2)
  44. #endif
  45.  
  46. #if PRAGMA_ENUM_ALWAYSINT
  47.     #pragma enumsalwaysint on
  48. #elif PRAGMA_ENUM_OPTIONS
  49.     #pragma option enum=int
  50. #elif PRAGMA_ENUM_PACK
  51.     #if __option(pack_enums)
  52.         #define PRAGMA_ENUM_PACK__QD3DACCELERATION__
  53.     #endif
  54.     #pragma options(!pack_enums)
  55. #endif
  56.  
  57. /******************************************************************************
  58.  **                                                                             **
  59.  **                         Vendor ID definitions                             **
  60.  **                                                                             **
  61.  *****************************************************************************/
  62. /*
  63.  * If kQAVendor_BestChoice is used, the system chooses the "best" drawing engine
  64.  * available for the target device. This should be used for the default.
  65.  */
  66. enum {
  67.     kQAVendor_BestChoice        = -1
  68. };
  69.  
  70. /*
  71.  * The other definitions (kQAVendor_Apple, etc.) identify specific vendors
  72.  * of drawing engines. When a vendor ID is used in conjunction with a
  73.  * vendor-defined engine ID, a specific drawing engine can be selected.
  74.  */
  75. enum {
  76.     kQAVendor_Apple                = 0,
  77.     kQAVendor_ATI                = 1,
  78.     kQAVendor_Radius            = 2,
  79.     kQAVendor_DesignMark        = 3,
  80.     kQAVendor_Matrox            = 4,
  81.     kQAVendor_Yarc                = 5,
  82.     kQAVendor_DiamondMM            = 6,
  83.     kQAVendor_3DLabs            = 7,
  84.     kQAVendor_D3DAdaptor        = 8,
  85.     kQAVendor_IXMicro            = 9,
  86.     kQAVendor_NumberNine        = 10,
  87.     kQAVendor_MicroConversions    = 11,
  88.     kQAVendor_PurpleShark        = 12,
  89.     kQAVendor_VillageTronic        = 14
  90. };
  91.  
  92. /******************************************************************************
  93.  **                                                                             **
  94.  **                         Apple's engine ID definitions                         **
  95.  **                                                                             **
  96.  *****************************************************************************/
  97. enum {
  98.     kQAEngine_AppleSW            = 0,                            /* Default software rasterizer*/
  99.     kQAEngine_AppleHW            = -1,                            /* Apple accelerator*/
  100.     kQAEngine_AppleHW2            = 1,                            /* Another Apple accelerator*/
  101.     kQAEngine_AppleHW3            = 2                                /* Another Apple accelerator*/
  102. };
  103.  
  104.  
  105.  
  106.  
  107. #if PRAGMA_ENUM_ALWAYSINT
  108.     #pragma enumsalwaysint reset
  109. #elif PRAGMA_ENUM_OPTIONS
  110.     #pragma option enum=reset
  111. #elif defined(PRAGMA_ENUM_PACK__QD3DACCELERATION__)
  112.     #pragma options(pack_enums)
  113. #endif
  114.  
  115. #if PRAGMA_STRUCT_ALIGN
  116.     #pragma options align=reset
  117. #elif PRAGMA_STRUCT_PACKPUSH
  118.     #pragma pack(pop)
  119. #elif PRAGMA_STRUCT_PACK
  120.     #pragma pack()
  121. #endif
  122.  
  123. #ifdef PRAGMA_IMPORT_OFF
  124. #pragma import off
  125. #elif PRAGMA_IMPORT
  126. #pragma import reset
  127. #endif
  128.  
  129. #ifdef __cplusplus
  130. }
  131. #endif
  132.  
  133. #endif /* __QD3DACCELERATION__ */
  134.  
  135.